package com.dem.javatestwebsocket.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dem.javatestwebsocket.model.ChatHistory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface ChatHistoryMapper extends BaseMapper<ChatHistory> {


    int insert(ChatHistory message);

//    @Insert("insert into chat_history (content) values (#{message})")//(content)表中的字段名，表示消息内容(#{message})要插入的值
//    void insert (String message);
//    @Insert("insert into t_chathistory (message) values (#{message})")//(content)表中的字段名，表示消息内容(#{message})要插入的值
//    int insert (ChatHistory chatHistory);
}
